package ronin.util;

import ronin.graphics.Vector2D;

public class Helper {

    public static final double ONE_RADIAN = Math.toRadians(1.0);

    /**
     * Gets the angle an actor would need to face a target at a certain
     * location.
     * 
     * @param from
     *                represents the actor location, preferably a center point,
     * @param to
     *                would be a vector (preferably a center point) representing
     *                the Target Location
     * 
     * @return a double value representing the theta rotational angle needed to
     *         face the from point A to point B.
     */
    public static double getAngleFacing(Vector2D from, Vector2D to) {
	return ((double) from.minus(to).toAngle());
    }

}
